package com.wnxy.sddfp.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.wnxy.sddfp.system.mapper")
@ComponentScan({
        "com.wnxy.sddfp.common",
        "com.wnxy.sddfp.system",
        "com.wnxy.sddfp.api.bank.fallback"
})
// 开启fein客户端注解支持
@EnableFeignClients(basePackages = "com.wnxy.sddfp.api")
@EnableCircuitBreaker
public class SystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class, args);
    }
}